<template>
    <div>
        <router-link to="/">首页=</router-link>
        <div v-for="item in navData">
          <router-link :to="item.path">{{item.title}}</router-link>
        </div>
        <router-view></router-view>
        <!-- Event /> -->
    </div>
</template>

<script>
// step1: 引入组件
//import Event from './viemws/event/index.vue'
import { navData } from '@/untils/nav'

export default {
    name: 'App',
    components: {
        // step2: 注册组件
       //  Event,
    },
    setup()   {
        return  {
           navData
        }
    } 
}
</script>
